package code;

public class Employee {
 private int id;
 private String firstName;
 private String lastName;
 private int salary;
 public Employee(){};
 public Employee(int id , String firstName, String lastName, int salary){
	 this.firstName=firstName;
	 this.lastName=lastName;
	 this.id=id;
	 this.salary=salary;
 }
public int getID(){
	return this.id;
}
public String getFirstName(){
	return this.firstName;
}
public String getLastName(){
	return this.lastName;
}
public String getName(){
	return this.firstName+ " "+this.lastName;
}
public int getSalary(){
	return this.salary;
}
public void setSalary(int salary){
	this.salary=salary;
}
public int getAnnualSalary(){
	return 12*this.salary;
}
public int raiseSalary(int percent){
	this.salary=(int)(this.salary+this.salary*(double)percent/100);
	
	return salary;
}
public String toString(){
	String str2="Employee[id="+this.id+",name="+getName()+",Salary= "+this.salary+"]";
	return str2;
}
}
